package Emp;

public class SalariedEmployee extends Employee{
    private double salary;//月薪
    public SalariedEmployee(String name, int month,double salary){
        super(name, month);
        this.salary = salary;
    }
    public double getSalary(int month){
        return salary + super.getSalary(month);
    }
    public void setSalary(double salary){
        this.salary = salary;
    }
}
